gl: avoid calculating vertex_data until necessary
authorChristian Hergert <chergert@redhat.com>
Sun, 13 Oct 2019 23:39:54 +0000 (16:39 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 23:44:26 +0000 (19:44 -0400)
commit97f33717097cb8f86ae81eedee8a2147c9f705e1
treeec658fbd59de115d9379ada98b9971718fb1162f
parent58d57e1087c9f705fc647522c99be3e4d9dc683a
gl: avoid calculating vertex_data until necessary

In many cases of the switch, we do not need the vertex data. This moves
the creation of the vertex_data array into a secondary function and only
calculates it the cases for which it is required.
gsk/gl/gskglrenderer.c